import request from '@/utils/request'

// 查询仓位地图列表
export function listMap(query) {
  return request({
    url: '/locates/map/list',
    method: 'get',
    params: query
  })
}

// 查询仓位地图详细
export function getMap(mapId) {
  return request({
    url: '/locates/map/' + mapId,
    method: 'get'
  })
}

// 新增仓位地图
export function addMap(data) {
  return request({
    url: '/locates/map',
    method: 'post',
    data: data
  })
}

// 修改仓位地图
export function updateMap(data) {
  return request({
    url: '/locates/map',
    method: 'put',
    data: data
  })
}

// 删除仓位地图
export function delMap(mapId) {
  return request({
    url: '/locates/map/' + mapId,
    method: 'delete'
  })
}

// 仓位地图字典项
export function listMapOption() {
  return request({
    url: '/locates/map/listoption',
    method: 'get'
  })
}
